#!/usr/bin/env python
# coding=utf-8
# @FileName  :max_index.py
# @Time      :2024/7/9 21:41
# @Author    :jdz
# @description :
def get_max_index(lst):
    if not lst:
        return None  # 如果列表为空，返回 None
    max_value = max(lst)
    max_index = lst.index(max_value)
    return max_index


# 示例用法
my_list = [10, 30, 50, 50, 40]
max_index = get_max_index(my_list)
print(f"The index of the maximum value {max(my_list)} is {max_index}")

print(my_list.pop(0))
print(my_list)